package xyz.erupt.flow.data.vo;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.erupt.flow.bean.entity.OaWorkFlowGroup;
import xyz.erupt.flow.bean.entity.form.FormComponent;
import xyz.erupt.flow.bean.entity.node.OaProcessNode;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @description: 工作流定义
 * @className: OaWorkFlowDefinition
 * @author: PP
 * @date: 2024/10/19 9:18
 * @Version: 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class VO_OaWorkFlowDefinition {
    private Long id;
    private Long workFlowGroupId;
    private String workFlowGroupName;

    /**
     * @description: 表单/流程名称
     * @author: PP
     * @date: 2024/10/19 9:45
     * @param:
     * @return:
    **/
    private String formName;

    /**
     * 图标配置
     */
    private String logo;

    /**
     * 设置项
     */
    //json类型
    private String settings;

    /**
     * 流程设置内容
     */
    //json类型
    private String process;

    /**
     * 表单内容
     *///json类型
    private String formItems;

    /**
     * 备注
     */
    private String remark;
    /**
     * 状态 0=正常 1=已停用
     */
    private boolean stop;

    /**
     * 创建/更新时间
     */
    private Date updateTime;

    private Integer sort;

    /**
     * 数据定义唯一键（多个修改版本中使用同一个流程键）
     */
    private String processKey;
}
